//
//蓝牙 ble 实体
//
class BleModel {
  ///通道名
  String channelName;
  ///通讯码
  int code;
  ///设备名
  String deviceName;
  ///是否连接
  bool isConnected;
  ///android 获取设备的 mac 地址
  String? mac;
  bool wifi = false;///是否已配网
  UserModel? userModel;///设备绑定的用户模型
  ///服务端设备 id
  String? deviceId;

  BleModel({
    required this.channelName,
    required this.code,
    required this.deviceName,
    required this.isConnected,
    required this.mac,
    this.wifi = false,
    this.userModel,
    this.deviceId,
  });

}

class UserModel {
  String? name;
  String? sex;
  String? mobile;

  UserModel({required this.name, required this.sex, required this.mobile});
}
